package com.qf;

import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author 汤奇
 * @version V1.0
 * @Project BookPro
 * @Package com.qf
 * @Description:
 * @Date 2022/7/12 13:08
 */
@SpringBootApplication
@EnableDistributedTransaction
@MapperScan("com.qf.dao")
public class ServiceAApplication {
    public static void main(String[] args) {

        SpringApplication.run(ServiceAApplication.class,args);
    }

    /**
     * 初始化远程调用对象
     * @return
     */
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
